home *** CD-ROM | disk | FTP | other *** search
- /* grafscrn */
-
- #include <stdlib.h>
- #include <stdio.h>
- #include <time2.h>
-
- main()
- {
- int i,j,x,y;
- /* int gdriver=DETECT, gmode, errorcode;*/
- clock_t start, end;
-
-
-
- x=10;
- y=20;
- start=clock(); /* begin timing */
- printf("start\n");
- /*cleardevice(); this could be disastrous in a WIMP box */
- for (i=0; i<100; i++)
- for (j=0; j<100; j++)
- printf( ".");
- end=clock();
- printf("\n");
- printf("The timing for this Screen Test was %f\n", (end-start) / CLK_TCK);
- };
-